home *** CD-ROM | disk | FTP | other *** search
/ Smart Steps: 2nd Grade / SSGRADE2.iso / pc / media / notions / maths / m2112.dxr / 00030_Message Aides.ls < prev    next >
Encoding:
Text File  |  1999-03-27  |  1.7 KB  |  60 lines

  1. on mouseDown
  2.   global getAt, gSon, gCpt, gCpt1, gCpt2, gCpt3, gCpt4, gCpt5
  3.   set GmySprite to the clickOn
  4.   ClickMain()
  5.   if GmySprite = 6 then
  6.     set Son to the name of member (getAt(gSon, 1) + gCpt) of castLib 1
  7.     joue(Son)
  8.     if gCpt < 2 then
  9.       set gCpt to gCpt + 1
  10.       set the memberNum of sprite 6 to the memberNum of sprite 6 + 1
  11.       updateStage()
  12.     end if
  13.   end if
  14.   if GmySprite = 7 then
  15.     set Son to the name of member (getAt(gSon, 2) + gCpt1) of castLib 1
  16.     joue(Son)
  17.     if gCpt1 < 2 then
  18.       set gCpt1 to gCpt1 + 1
  19.       set the memberNum of sprite 7 to the memberNum of sprite 7 + 1
  20.       updateStage()
  21.     end if
  22.   end if
  23.   if GmySprite = 8 then
  24.     set Son to the name of member (getAt(gSon, 3) + gCpt2) of castLib 1
  25.     joue(Son)
  26.     if gCpt2 < 2 then
  27.       set gCpt2 to gCpt2 + 1
  28.       set the memberNum of sprite 8 to the memberNum of sprite 8 + 1
  29.       updateStage()
  30.     end if
  31.   end if
  32.   if GmySprite = 9 then
  33.     set Son to the name of member (getAt(gSon, 4) + gCpt3) of castLib 1
  34.     joue(Son)
  35.     if gCpt3 < 2 then
  36.       set gCpt3 to gCpt3 + 1
  37.       set the memberNum of sprite 9 to the memberNum of sprite 9 + 1
  38.       updateStage()
  39.     end if
  40.   end if
  41.   if GmySprite = 10 then
  42.     set Son to the name of member (getAt(gSon, 5) + gCpt4) of castLib 1
  43.     joue(Son)
  44.     if gCpt4 < 2 then
  45.       set gCpt4 to gCpt4 + 1
  46.       set the memberNum of sprite 10 to the memberNum of sprite 10 + 1
  47.       updateStage()
  48.     end if
  49.   end if
  50.   if GmySprite = 11 then
  51.     set Son to the name of member (getAt(gSon, 6) + gCpt5) of castLib 1
  52.     joue(Son)
  53.     if gCpt5 < 2 then
  54.       set gCpt5 to gCpt5 + 1
  55.       set the memberNum of sprite 11 to the memberNum of sprite 11 + 1
  56.       updateStage()
  57.     end if
  58.   end if
  59. end
  60.